package com.dtx.singleton.lazy;

public class SafeSingle {

    private static SafeSingle instance;
    private SafeSingle() {
    }
    public static synchronized SafeSingle getInstance(){
        if (null != instance) return instance;
        instance = new SafeSingle();
        return instance;
    }
}
